package com.sw.core.controller;

import com.jfinal.core.Controller;
import com.jfinal.log.Logger;
import com.jfinal.plugin.activerecord.Record;
import com.tapestry.app.core.data.IList;

public class BaseController extends Controller{
	
	protected Logger log = Logger.getLogger(BaseController.class);
	
	public void render(String view){
		this.setAttr("root",""); //设置root为根目录
		super.render(view);
	}
	
	/**
	 * @Title : getCurrentUser
	 * @Description:获取当前系统操作人
	 * @Param : @return
	 * @return: Record
	 */
	public Record getCurrentUser(){
		return null;
	}
	
	/**
	 * @Title : InsertLog
	 * @Description:记录用户操作日志
	 * @Param : 
	 * @return: void
	 */
	public void InsertLog(IList dataset){
		
	}

}
